require 'redmine'
require_relative 'lib/redmine_issue_status_bgcolor/hooks'
require_relative 'lib/redmine_issue_status_bgcolor/css_color_patch'

Redmine::Plugin.register :redmine_issue_status_bgcolor do
  name 'Redmine Issue Status Bgcolor plugin'
  author 'Erazx'
  description 'Plugin for Redmine to change issues background color by status'
  version '0.0.1'
  url 'https://gitee.com/surveying/redmine_issue_status_bgcolor.git'
  author_url 'https://gitee.com/surveying'

  # support enable for specific project
  project_module :redmine_issue_status_bgcolor do
    permission :view_issue_status_bgcolor, {}, public: true
  end
  # plugin configuration
  settings default: {}, partial: 'settings/redmine_issue_status_bgcolor_settings'
end
